package com.lin.subject.infra.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.subject.infra.basic.entity.SubjectBrief;

import java.util.List;

/**
* @author jeremylin
* @description 针对表【subject_brief(简答题)】的数据库操作Service
* @createDate 2024-10-21 11:12:20
*/
public interface SubjectBriefService extends IService<SubjectBrief> {

    /**
     * 插入单条数据
     * @param subjectBrief
     */
    void insertOne(SubjectBrief subjectBrief);

    /**
     * 根据条件查询-列表
     * @param subjectBrief
     * @return
     */
    List<SubjectBrief> queryListByCondition(SubjectBrief subjectBrief);

    /**
     * 根据条件查询-单条
     * @param subjectBrief
     * @return
     */
    SubjectBrief queryOneByCondition(SubjectBrief subjectBrief);

    /**
     * 删除题目
     * @param id
     */
    void deleteSubject(Long id);
}
